package com.kfyang.manualgear.daoplugin.simple;

import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.openapi.util.IconLoader;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public final class SimpleFileType extends LanguageFileType {

    public static final SimpleFileType INSTANCE = new SimpleFileType();
    public static class SimpleIcons {
        private static final Icon FILE_ICON = IconLoader.getIcon("/icons/icon_blog.png", SimpleIcons.class);
    }


    private SimpleFileType() {
        super(SimpleLanguage.INSTANCE);
    }

    @NotNull
    @Override
    public String getName() {
        return "Simple File";
    }

    @NotNull
    @Override
    public String getDescription() {
        return "Simple language file";
    }

    @NotNull
    @Override
    public String getDefaultExtension() {
        return "simple";
    }

    @Override
    public Icon getIcon() {
        return SimpleIcons.FILE_ICON;
    }

}
